package com.dr.cmdb.core.mongodao;

import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @ProjectName: cmdb
 * @Package: com.dr.cmdb.core.mongodao
 * @Description: java类作用描述
 * @Author: duanrui
 * @CreateDate: 2021/4/28 18:18
 * @Version: 1.0
 * <p>
 * Copyright: Copyright (c) 2021
 */
@Data
@Builder
@Document(collection="operate_log")
public class OperateLog {
    @Id
    private String id;

    /**
     * 操作模块
     */
    private String operateModule;


    /**
     * 操作描述
     */
    private String operateDesc;


    /**
     *操作类型
     */
    private String operateType;

    /**
     * 操作用户
     */
    private String operateUser;


    /**
     * 操作前数据
     */
    private Object beforeData;


    /**
     * 操作后数据
     */
    private Object afterDate;

    /**
     *  请求参数
     */
    private String reqParams;


    /**
     * 返回结果
     */
    private String result;



    /**
     *  请求方法
     */
    private String reqMethod;


    /**
     * 操作时间
     */
    private Date operateDate;
}
